package service.vo.myService.Panduan.impl;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import service.vo.MessageVo;
import service.vo.myService.Panduan.PandService;

public class PandServiceImpl  implements PandService{

	@Override
	public Map<String,MessageVo> getVo(String user) {
		boolean b = this.isUset(user);
		String url = "";
		MessageVo vo = new MessageVo();
		Map<String ,MessageVo> map = new HashMap<String,MessageVo>();
		if(b ==true){
			vo.setMess("成功！");
			vo.setName("name");
			vo.setStr("sss");
			map.put("/view/chengong.jsp", vo);
			
		}else{
			vo.setMess("失败xxx");
			vo.setName("namexxx");
			vo.setStr("sssxx");
			map.put("/view/shibai.jsp", vo);
		}
		
		return map;
	}

	public boolean isUset(String name){
		boolean b=false;
		
		if(name.equals("liyu")){
			b=true;
		}
		return b ;
	}
}
